<?php
class Api_Calls_Statistics extends Api_Calls
{
	/**
	 * 
	 * returns the board statistics
	 */
	public static function getBoardStats()
	{
		$output = $this->getModelFromCache('XenForo_Model_Node')->getNodeTotalItemCounts();

		$userModel = $this->getModelFromCache('XenForo_Model_User');

		$output['latestUser'] = $userModel->getLatestUser();
		$output['users'] = $userModel->countTotalUsers();

		return $output;
	}
}